package scheduler

import "time"

var nowOffset = int64(0)

func Now() int64 {
	return time.Now().UnixMilli() + nowOffset
}

func NowFakeSet(ts int64) {
	nowOffset = ts - time.Now().UnixMilli()
}

func NowFakeClear() {
	nowOffset = 0
}
